// ----------------------------------------------------------------------------//
// DBTrigger.java
// Created by user On 2012-10-31
package com.demo.framework.db;

import android.content.ContentValues;

/**
 * 软件实现数据库触发器
 */
public interface DatabaseTrigger {
	public void beforeInsert(DatabaseAccess db, String name,
			ContentValues values);

	public void afterInsert(DatabaseAccess db, String name, ContentValues values, long rowid);

	public void beforeUpdate(DatabaseAccess db, String name,
			ContentValues values);

	public void afterUpdate(DatabaseAccess db, String name, ContentValues values, int lines);
}

// ----------------------------------END---------------------------------------//